﻿using System.Windows.Forms;
using System;
using RollBackLib.src.utils;
using log4net;
using RollBackLib.src.core;


namespace RollBack.src.ui
{
    partial class AdvancedDialogForm
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        private static ILog log = LogManager.GetLogger(typeof(AdvancedDialogForm));

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.m_overwriteExistingNewerFiles = new System.Windows.Forms.CheckBox();
            this.m_advancedTabControl = new System.Windows.Forms.TabControl();
            this.m_generalTab = new System.Windows.Forms.TabPage();
            this.label5 = new System.Windows.Forms.Label();
            this.m_guidTextBox = new System.Windows.Forms.TextBox();
            this.m_synchronizeBackupCheckbox = new System.Windows.Forms.CheckBox();
            this.m_extraLoggingCheckbox = new System.Windows.Forms.CheckBox();
            this.label4 = new System.Windows.Forms.Label();
            this.m_browseFolderButton = new System.Windows.Forms.Button();
            this.m_destinationFolderTextbox = new System.Windows.Forms.TextBox();
            this.label3 = new System.Windows.Forms.Label();
            this.m_invalidFileNamesLabel = new System.Windows.Forms.Label();
            this.label2 = new System.Windows.Forms.Label();
            this.m_jobName = new System.Windows.Forms.TextBox();
            this.m_disableBackupCheckbox = new System.Windows.Forms.CheckBox();
            this.m_scheduleTab = new System.Windows.Forms.TabPage();
            this.m_jobSchedulerEnabled = new System.Windows.Forms.CheckBox();
            this.m_dayOfMonthCombo = new System.Windows.Forms.ComboBox();
            this.label1 = new System.Windows.Forms.Label();
            this.m_timeOfDayCombo = new System.Windows.Forms.ComboBox();
            this.m_dayOfTheWeekCombo = new System.Windows.Forms.ComboBox();
            this.m_timeLabel = new System.Windows.Forms.Label();
            this.m_dayOfTheWeekLabel = new System.Windows.Forms.Label();
            this.m_howOftenLabel = new System.Windows.Forms.Label();
            this.m_howOftenCombo = new System.Windows.Forms.ComboBox();
            this.m_includeExcludeTab = new System.Windows.Forms.TabPage();
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.m_excludeFolderFilterCheckbox = new System.Windows.Forms.CheckBox();
            this.m_includeFolderFilterCheckbox = new System.Windows.Forms.CheckBox();
            this.m_excludeFolderFilter = new System.Windows.Forms.TextBox();
            this.m_includeFolderFilter = new System.Windows.Forms.TextBox();
            this.m_groupBox1 = new System.Windows.Forms.GroupBox();
            this.m_excludeFileFilterCheckbox = new System.Windows.Forms.CheckBox();
            this.m_includeFileFilterCheckbox = new System.Windows.Forms.CheckBox();
            this.m_excludeFileFilter = new System.Windows.Forms.TextBox();
            this.m_includeFileFilter = new System.Windows.Forms.TextBox();
            this.m_notificationTabPage = new System.Windows.Forms.TabPage();
            this.label6 = new System.Windows.Forms.Label();
            this.m_emailCheckedListBox = new System.Windows.Forms.ListView();
            this.splitContainer1 = new System.Windows.Forms.SplitContainer();
            this.m_cancelButton = new System.Windows.Forms.Button();
            this.m_acceptButton = new System.Windows.Forms.Button();
            this.m_advancedTabControl.SuspendLayout();
            this.m_generalTab.SuspendLayout();
            this.m_scheduleTab.SuspendLayout();
            this.m_includeExcludeTab.SuspendLayout();
            this.groupBox1.SuspendLayout();
            this.m_groupBox1.SuspendLayout();
            this.m_notificationTabPage.SuspendLayout();
            this.splitContainer1.Panel1.SuspendLayout();
            this.splitContainer1.Panel2.SuspendLayout();
            this.splitContainer1.SuspendLayout();
            this.SuspendLayout();
            // 
            // m_overwriteExistingNewerFiles
            // 
            this.m_overwriteExistingNewerFiles.AutoSize = true;
            this.m_overwriteExistingNewerFiles.Location = new System.Drawing.Point(22, 27);
            this.m_overwriteExistingNewerFiles.Name = "m_overwriteExistingNewerFiles";
            this.m_overwriteExistingNewerFiles.Size = new System.Drawing.Size(168, 17);
            this.m_overwriteExistingNewerFiles.TabIndex = 12;
            this.m_overwriteExistingNewerFiles.Text = "Overwrite Newer Existing Files";
            this.m_overwriteExistingNewerFiles.UseVisualStyleBackColor = true;
            this.m_overwriteExistingNewerFiles.CheckedChanged += new System.EventHandler(this.m_overwriteExistingNewerFiles_CheckedChanged);
            // 
            // m_advancedTabControl
            // 
            this.m_advancedTabControl.Controls.Add(this.m_generalTab);
            this.m_advancedTabControl.Controls.Add(this.m_scheduleTab);
            this.m_advancedTabControl.Controls.Add(this.m_includeExcludeTab);
            this.m_advancedTabControl.Controls.Add(this.m_notificationTabPage);
            this.m_advancedTabControl.Dock = System.Windows.Forms.DockStyle.Fill;
            this.m_advancedTabControl.ItemSize = new System.Drawing.Size(100, 27);
            this.m_advancedTabControl.Location = new System.Drawing.Point(0, 0);
            this.m_advancedTabControl.Name = "m_advancedTabControl";
            this.m_advancedTabControl.SelectedIndex = 0;
            this.m_advancedTabControl.ShowToolTips = true;
            this.m_advancedTabControl.Size = new System.Drawing.Size(614, 312);
            this.m_advancedTabControl.SizeMode = System.Windows.Forms.TabSizeMode.FillToRight;
            this.m_advancedTabControl.TabIndex = 13;
            // 
            // m_generalTab
            // 
            this.m_generalTab.Controls.Add(this.label5);
            this.m_generalTab.Controls.Add(this.m_guidTextBox);
            this.m_generalTab.Controls.Add(this.m_synchronizeBackupCheckbox);
            this.m_generalTab.Controls.Add(this.m_extraLoggingCheckbox);
            this.m_generalTab.Controls.Add(this.label4);
            this.m_generalTab.Controls.Add(this.m_browseFolderButton);
            this.m_generalTab.Controls.Add(this.m_destinationFolderTextbox);
            this.m_generalTab.Controls.Add(this.label3);
            this.m_generalTab.Controls.Add(this.m_invalidFileNamesLabel);
            this.m_generalTab.Controls.Add(this.label2);
            this.m_generalTab.Controls.Add(this.m_jobName);
            this.m_generalTab.Controls.Add(this.m_disableBackupCheckbox);
            this.m_generalTab.Controls.Add(this.m_overwriteExistingNewerFiles);
            this.m_generalTab.ImageIndex = 5;
            this.m_generalTab.Location = new System.Drawing.Point(4, 31);
            this.m_generalTab.Name = "m_generalTab";
            this.m_generalTab.Padding = new System.Windows.Forms.Padding(3);
            this.m_generalTab.Size = new System.Drawing.Size(606, 277);
            this.m_generalTab.TabIndex = 0;
            this.m_generalTab.Text = "General";
            this.m_generalTab.ToolTipText = "General Settings";
            this.m_generalTab.UseVisualStyleBackColor = true;
            // 
            // label5
            // 
            this.label5.AutoSize = true;
            this.label5.Location = new System.Drawing.Point(251, 75);
            this.label5.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(29, 13);
            this.label5.TabIndex = 24;
            this.label5.Text = "Guid";
            // 
            // m_guidTextBox
            // 
            this.m_guidTextBox.Location = new System.Drawing.Point(312, 72);
            this.m_guidTextBox.Margin = new System.Windows.Forms.Padding(2);
            this.m_guidTextBox.Name = "m_guidTextBox";
            this.m_guidTextBox.ReadOnly = true;
            this.m_guidTextBox.Size = new System.Drawing.Size(267, 20);
            this.m_guidTextBox.TabIndex = 23;
            // 
            // m_synchronizeBackupCheckbox
            // 
            this.m_synchronizeBackupCheckbox.AutoSize = true;
            this.m_synchronizeBackupCheckbox.Location = new System.Drawing.Point(22, 141);
            this.m_synchronizeBackupCheckbox.Margin = new System.Windows.Forms.Padding(2);
            this.m_synchronizeBackupCheckbox.Name = "m_synchronizeBackupCheckbox";
            this.m_synchronizeBackupCheckbox.Size = new System.Drawing.Size(124, 17);
            this.m_synchronizeBackupCheckbox.TabIndex = 22;
            this.m_synchronizeBackupCheckbox.Text = "Synchronize Backup";
            this.m_synchronizeBackupCheckbox.UseVisualStyleBackColor = true;
            // 
            // m_extraLoggingCheckbox
            // 
            this.m_extraLoggingCheckbox.AutoSize = true;
            this.m_extraLoggingCheckbox.Location = new System.Drawing.Point(22, 102);
            this.m_extraLoggingCheckbox.Name = "m_extraLoggingCheckbox";
            this.m_extraLoggingCheckbox.Size = new System.Drawing.Size(91, 17);
            this.m_extraLoggingCheckbox.TabIndex = 21;
            this.m_extraLoggingCheckbox.Text = "Extra Logging";
            this.m_extraLoggingCheckbox.UseVisualStyleBackColor = true;
            // 
            // label4
            // 
            this.label4.AutoSize = true;
            this.label4.Location = new System.Drawing.Point(318, 131);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(144, 13);
            this.label4.TabIndex = 20;
            this.label4.Text = "(Select the destination folder)";
            // 
            // m_browseFolderButton
            // 
            this.m_browseFolderButton.Location = new System.Drawing.Point(503, 102);
            this.m_browseFolderButton.Name = "m_browseFolderButton";
            this.m_browseFolderButton.Size = new System.Drawing.Size(75, 23);
            this.m_browseFolderButton.TabIndex = 19;
            this.m_browseFolderButton.Text = "Browse";
            this.m_browseFolderButton.UseVisualStyleBackColor = true;
            this.m_browseFolderButton.Click += new System.EventHandler(this.m_browseFolderButton_Click);
            // 
            // m_destinationFolderTextbox
            // 
            this.m_destinationFolderTextbox.Location = new System.Drawing.Point(318, 104);
            this.m_destinationFolderTextbox.Name = "m_destinationFolderTextbox";
            this.m_destinationFolderTextbox.Size = new System.Drawing.Size(173, 20);
            this.m_destinationFolderTextbox.TabIndex = 18;
            this.m_destinationFolderTextbox.Validating += new System.ComponentModel.CancelEventHandler(this.m_destinationFolderTextbox_Validating);
            // 
            // label3
            // 
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(249, 107);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(63, 13);
            this.label3.TabIndex = 17;
            this.label3.Text = "Destination:";
            // 
            // m_invalidFileNamesLabel
            // 
            this.m_invalidFileNamesLabel.AutoSize = true;
            this.m_invalidFileNamesLabel.Location = new System.Drawing.Point(310, 47);
            this.m_invalidFileNamesLabel.Name = "m_invalidFileNamesLabel";
            this.m_invalidFileNamesLabel.Size = new System.Drawing.Size(173, 13);
            this.m_invalidFileNamesLabel.TabIndex = 16;
            this.m_invalidFileNamesLabel.Text = "(cannot contain special characters)";
            // 
            // label2
            // 
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(249, 27);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(58, 13);
            this.label2.TabIndex = 15;
            this.label2.Text = "Job Name:";
            // 
            // m_jobName
            // 
            this.m_jobName.Location = new System.Drawing.Point(313, 24);
            this.m_jobName.Name = "m_jobName";
            this.m_jobName.Size = new System.Drawing.Size(266, 20);
            this.m_jobName.TabIndex = 0;
            // 
            // m_disableBackupCheckbox
            // 
            this.m_disableBackupCheckbox.AutoSize = true;
            this.m_disableBackupCheckbox.Location = new System.Drawing.Point(22, 63);
            this.m_disableBackupCheckbox.Name = "m_disableBackupCheckbox";
            this.m_disableBackupCheckbox.Size = new System.Drawing.Size(61, 17);
            this.m_disableBackupCheckbox.TabIndex = 13;
            this.m_disableBackupCheckbox.Text = "Disable";
            this.m_disableBackupCheckbox.UseVisualStyleBackColor = true;
            // 
            // m_scheduleTab
            // 
            this.m_scheduleTab.Controls.Add(this.m_jobSchedulerEnabled);
            this.m_scheduleTab.Controls.Add(this.m_dayOfMonthCombo);
            this.m_scheduleTab.Controls.Add(this.label1);
            this.m_scheduleTab.Controls.Add(this.m_timeOfDayCombo);
            this.m_scheduleTab.Controls.Add(this.m_dayOfTheWeekCombo);
            this.m_scheduleTab.Controls.Add(this.m_timeLabel);
            this.m_scheduleTab.Controls.Add(this.m_dayOfTheWeekLabel);
            this.m_scheduleTab.Controls.Add(this.m_howOftenLabel);
            this.m_scheduleTab.Controls.Add(this.m_howOftenCombo);
            this.m_scheduleTab.ImageIndex = 6;
            this.m_scheduleTab.Location = new System.Drawing.Point(4, 31);
            this.m_scheduleTab.Name = "m_scheduleTab";
            this.m_scheduleTab.Padding = new System.Windows.Forms.Padding(3);
            this.m_scheduleTab.Size = new System.Drawing.Size(606, 277);
            this.m_scheduleTab.TabIndex = 1;
            this.m_scheduleTab.Text = "Schedule";
            this.m_scheduleTab.ToolTipText = "Schedule the backup job";
            this.m_scheduleTab.UseVisualStyleBackColor = true;
            // 
            // m_jobSchedulerEnabled
            // 
            this.m_jobSchedulerEnabled.AutoSize = true;
            this.m_jobSchedulerEnabled.Location = new System.Drawing.Point(163, 21);
            this.m_jobSchedulerEnabled.Name = "m_jobSchedulerEnabled";
            this.m_jobSchedulerEnabled.Size = new System.Drawing.Size(110, 17);
            this.m_jobSchedulerEnabled.TabIndex = 8;
            this.m_jobSchedulerEnabled.Text = "Enable Scheduler";
            this.m_jobSchedulerEnabled.UseVisualStyleBackColor = true;
            this.m_jobSchedulerEnabled.CheckedChanged += new System.EventHandler(this.m_jobSchedulerEnabled_CheckedChanged);
            // 
            // m_dayOfMonthCombo
            // 
            this.m_dayOfMonthCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.m_dayOfMonthCombo.Enabled = false;
            this.m_dayOfMonthCombo.FormattingEnabled = true;
            this.m_dayOfMonthCombo.Items.AddRange(new object[] {
            "1",
            "2",
            "3",
            "4",
            "5",
            "6",
            "7",
            "8"});
            this.m_dayOfMonthCombo.Location = new System.Drawing.Point(163, 178);
            this.m_dayOfMonthCombo.Name = "m_dayOfMonthCombo";
            this.m_dayOfMonthCombo.Size = new System.Drawing.Size(121, 21);
            this.m_dayOfMonthCombo.TabIndex = 7;
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(51, 182);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(92, 13);
            this.label1.TabIndex = 6;
            this.label1.Text = "Day of the Month:";
            // 
            // m_timeOfDayCombo
            // 
            this.m_timeOfDayCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.m_timeOfDayCombo.Enabled = false;
            this.m_timeOfDayCombo.FormattingEnabled = true;
            this.m_timeOfDayCombo.Items.AddRange(new object[] {
            "12:00 AM",
            "1:00 AM",
            "2:00 AM",
            "3:00 AM",
            "4:00 AM",
            "5:00 AM",
            "6:00 AM",
            "7:00 AM",
            "8:00 AM",
            "9:00 AM",
            "10:00 AM",
            "11:00 AM",
            "12:00 PM (Noon)",
            "1:00 PM",
            "2:00 PM",
            "3:00 PM",
            "4:00 PM",
            "5:00 PM",
            "6:00 PM",
            "7:00 PM",
            "8:00 PM",
            "9:00 PM",
            "10:00 PM",
            "11:00 PM"});
            this.m_timeOfDayCombo.Location = new System.Drawing.Point(163, 104);
            this.m_timeOfDayCombo.Name = "m_timeOfDayCombo";
            this.m_timeOfDayCombo.Size = new System.Drawing.Size(121, 21);
            this.m_timeOfDayCombo.TabIndex = 5;
            // 
            // m_dayOfTheWeekCombo
            // 
            this.m_dayOfTheWeekCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.m_dayOfTheWeekCombo.Enabled = false;
            this.m_dayOfTheWeekCombo.FormattingEnabled = true;
            this.m_dayOfTheWeekCombo.Items.AddRange(new object[] {
            "Sunday",
            "Monday",
            "Tuesday",
            "Wednesday",
            "Thursday",
            "Friday",
            "Saturday"});
            this.m_dayOfTheWeekCombo.Location = new System.Drawing.Point(163, 142);
            this.m_dayOfTheWeekCombo.Name = "m_dayOfTheWeekCombo";
            this.m_dayOfTheWeekCombo.Size = new System.Drawing.Size(121, 21);
            this.m_dayOfTheWeekCombo.TabIndex = 4;
            // 
            // m_timeLabel
            // 
            this.m_timeLabel.AutoSize = true;
            this.m_timeLabel.Location = new System.Drawing.Point(51, 108);
            this.m_timeLabel.Name = "m_timeLabel";
            this.m_timeLabel.Size = new System.Drawing.Size(33, 13);
            this.m_timeLabel.TabIndex = 3;
            this.m_timeLabel.Text = "Time:";
            // 
            // m_dayOfTheWeekLabel
            // 
            this.m_dayOfTheWeekLabel.AutoSize = true;
            this.m_dayOfTheWeekLabel.Location = new System.Drawing.Point(51, 146);
            this.m_dayOfTheWeekLabel.Name = "m_dayOfTheWeekLabel";
            this.m_dayOfTheWeekLabel.Size = new System.Drawing.Size(91, 13);
            this.m_dayOfTheWeekLabel.TabIndex = 2;
            this.m_dayOfTheWeekLabel.Text = "Day of the Week:";
            // 
            // m_howOftenLabel
            // 
            this.m_howOftenLabel.AutoSize = true;
            this.m_howOftenLabel.Location = new System.Drawing.Point(51, 71);
            this.m_howOftenLabel.Name = "m_howOftenLabel";
            this.m_howOftenLabel.Size = new System.Drawing.Size(61, 13);
            this.m_howOftenLabel.TabIndex = 1;
            this.m_howOftenLabel.Text = "How Often:";
            // 
            // m_howOftenCombo
            // 
            this.m_howOftenCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.m_howOftenCombo.Enabled = false;
            this.m_howOftenCombo.FormattingEnabled = true;
            this.m_howOftenCombo.Items.AddRange(new object[] {
            "Daily",
            "Weekly",
            "Monthly"});
            this.m_howOftenCombo.Location = new System.Drawing.Point(163, 67);
            this.m_howOftenCombo.Name = "m_howOftenCombo";
            this.m_howOftenCombo.Size = new System.Drawing.Size(121, 21);
            this.m_howOftenCombo.TabIndex = 0;
            this.m_howOftenCombo.SelectedIndexChanged += new System.EventHandler(this.m_howOften_SelectedIndexChanged);
            // 
            // m_includeExcludeTab
            // 
            this.m_includeExcludeTab.Controls.Add(this.groupBox1);
            this.m_includeExcludeTab.Controls.Add(this.m_groupBox1);
            this.m_includeExcludeTab.ImageIndex = 7;
            this.m_includeExcludeTab.Location = new System.Drawing.Point(4, 31);
            this.m_includeExcludeTab.Margin = new System.Windows.Forms.Padding(2);
            this.m_includeExcludeTab.Name = "m_includeExcludeTab";
            this.m_includeExcludeTab.Padding = new System.Windows.Forms.Padding(2);
            this.m_includeExcludeTab.Size = new System.Drawing.Size(606, 277);
            this.m_includeExcludeTab.TabIndex = 2;
            this.m_includeExcludeTab.Text = "Include/Exclude";
            this.m_includeExcludeTab.ToolTipText = "Set File/Folder include and exclude filter";
            this.m_includeExcludeTab.UseVisualStyleBackColor = true;
            // 
            // groupBox1
            // 
            this.groupBox1.Controls.Add(this.m_excludeFolderFilterCheckbox);
            this.groupBox1.Controls.Add(this.m_includeFolderFilterCheckbox);
            this.groupBox1.Controls.Add(this.m_excludeFolderFilter);
            this.groupBox1.Controls.Add(this.m_includeFolderFilter);
            this.groupBox1.Location = new System.Drawing.Point(245, 18);
            this.groupBox1.Margin = new System.Windows.Forms.Padding(2);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Padding = new System.Windows.Forms.Padding(2);
            this.groupBox1.Size = new System.Drawing.Size(202, 254);
            this.groupBox1.TabIndex = 1;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "Folder Filters";
            // 
            // m_excludeFolderFilterCheckbox
            // 
            this.m_excludeFolderFilterCheckbox.AutoSize = true;
            this.m_excludeFolderFilterCheckbox.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.m_excludeFolderFilterCheckbox.Location = new System.Drawing.Point(18, 129);
            this.m_excludeFolderFilterCheckbox.Margin = new System.Windows.Forms.Padding(2);
            this.m_excludeFolderFilterCheckbox.MinimumSize = new System.Drawing.Size(0, 20);
            this.m_excludeFolderFilterCheckbox.Name = "m_excludeFolderFilterCheckbox";
            this.m_excludeFolderFilterCheckbox.Size = new System.Drawing.Size(101, 20);
            this.m_excludeFolderFilterCheckbox.TabIndex = 6;
            this.m_excludeFolderFilterCheckbox.Text = "Exclude Folders";
            this.m_excludeFolderFilterCheckbox.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
            this.m_excludeFolderFilterCheckbox.UseVisualStyleBackColor = true;
            this.m_excludeFolderFilterCheckbox.CheckedChanged += new System.EventHandler(this.m_excludeFolderFilterCheckbox_CheckedChanged);
            // 
            // m_includeFolderFilterCheckbox
            // 
            this.m_includeFolderFilterCheckbox.AutoSize = true;
            this.m_includeFolderFilterCheckbox.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.m_includeFolderFilterCheckbox.Location = new System.Drawing.Point(18, 16);
            this.m_includeFolderFilterCheckbox.Margin = new System.Windows.Forms.Padding(2);
            this.m_includeFolderFilterCheckbox.MinimumSize = new System.Drawing.Size(0, 20);
            this.m_includeFolderFilterCheckbox.Name = "m_includeFolderFilterCheckbox";
            this.m_includeFolderFilterCheckbox.Size = new System.Drawing.Size(98, 20);
            this.m_includeFolderFilterCheckbox.TabIndex = 5;
            this.m_includeFolderFilterCheckbox.Text = "Include Folders";
            this.m_includeFolderFilterCheckbox.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            this.m_includeFolderFilterCheckbox.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
            this.m_includeFolderFilterCheckbox.UseVisualStyleBackColor = true;
            this.m_includeFolderFilterCheckbox.CheckedChanged += new System.EventHandler(this.m_includeFolderFilterCheckbox_CheckedChanged);
            // 
            // m_excludeFolderFilter
            // 
            this.m_excludeFolderFilter.AcceptsReturn = true;
            this.m_excludeFolderFilter.Location = new System.Drawing.Point(18, 154);
            this.m_excludeFolderFilter.Margin = new System.Windows.Forms.Padding(2);
            this.m_excludeFolderFilter.Multiline = true;
            this.m_excludeFolderFilter.Name = "m_excludeFolderFilter";
            this.m_excludeFolderFilter.ScrollBars = System.Windows.Forms.ScrollBars.Both;
            this.m_excludeFolderFilter.Size = new System.Drawing.Size(162, 84);
            this.m_excludeFolderFilter.TabIndex = 3;
            // 
            // m_includeFolderFilter
            // 
            this.m_includeFolderFilter.AcceptsReturn = true;
            this.m_includeFolderFilter.Location = new System.Drawing.Point(18, 38);
            this.m_includeFolderFilter.Margin = new System.Windows.Forms.Padding(2);
            this.m_includeFolderFilter.Multiline = true;
            this.m_includeFolderFilter.Name = "m_includeFolderFilter";
            this.m_includeFolderFilter.ScrollBars = System.Windows.Forms.ScrollBars.Both;
            this.m_includeFolderFilter.Size = new System.Drawing.Size(162, 84);
            this.m_includeFolderFilter.TabIndex = 0;
            // 
            // m_groupBox1
            // 
            this.m_groupBox1.Controls.Add(this.m_excludeFileFilterCheckbox);
            this.m_groupBox1.Controls.Add(this.m_includeFileFilterCheckbox);
            this.m_groupBox1.Controls.Add(this.m_excludeFileFilter);
            this.m_groupBox1.Controls.Add(this.m_includeFileFilter);
            this.m_groupBox1.Location = new System.Drawing.Point(7, 18);
            this.m_groupBox1.Margin = new System.Windows.Forms.Padding(2);
            this.m_groupBox1.Name = "m_groupBox1";
            this.m_groupBox1.Padding = new System.Windows.Forms.Padding(2);
            this.m_groupBox1.Size = new System.Drawing.Size(201, 254);
            this.m_groupBox1.TabIndex = 0;
            this.m_groupBox1.TabStop = false;
            this.m_groupBox1.Text = "File Filters";
            // 
            // m_excludeFileFilterCheckbox
            // 
            this.m_excludeFileFilterCheckbox.AutoSize = true;
            this.m_excludeFileFilterCheckbox.Location = new System.Drawing.Point(18, 129);
            this.m_excludeFileFilterCheckbox.Margin = new System.Windows.Forms.Padding(2);
            this.m_excludeFileFilterCheckbox.MinimumSize = new System.Drawing.Size(0, 20);
            this.m_excludeFileFilterCheckbox.Name = "m_excludeFileFilterCheckbox";
            this.m_excludeFileFilterCheckbox.Size = new System.Drawing.Size(88, 20);
            this.m_excludeFileFilterCheckbox.TabIndex = 5;
            this.m_excludeFileFilterCheckbox.Text = "Exclude Files";
            this.m_excludeFileFilterCheckbox.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
            this.m_excludeFileFilterCheckbox.UseVisualStyleBackColor = true;
            this.m_excludeFileFilterCheckbox.CheckedChanged += new System.EventHandler(this.m_excludeFileFilterCheckbox_CheckedChanged);
            // 
            // m_includeFileFilterCheckbox
            // 
            this.m_includeFileFilterCheckbox.AutoSize = true;
            this.m_includeFileFilterCheckbox.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.m_includeFileFilterCheckbox.Location = new System.Drawing.Point(18, 16);
            this.m_includeFileFilterCheckbox.Margin = new System.Windows.Forms.Padding(2);
            this.m_includeFileFilterCheckbox.MinimumSize = new System.Drawing.Size(0, 20);
            this.m_includeFileFilterCheckbox.Name = "m_includeFileFilterCheckbox";
            this.m_includeFileFilterCheckbox.Size = new System.Drawing.Size(85, 20);
            this.m_includeFileFilterCheckbox.TabIndex = 4;
            this.m_includeFileFilterCheckbox.Text = "Include Files";
            this.m_includeFileFilterCheckbox.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            this.m_includeFileFilterCheckbox.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
            this.m_includeFileFilterCheckbox.UseVisualStyleBackColor = true;
            this.m_includeFileFilterCheckbox.CheckedChanged += new System.EventHandler(this.m_includeFileFilterCheckbox_CheckedChanged);
            // 
            // m_excludeFileFilter
            // 
            this.m_excludeFileFilter.AcceptsReturn = true;
            this.m_excludeFileFilter.Location = new System.Drawing.Point(18, 154);
            this.m_excludeFileFilter.Margin = new System.Windows.Forms.Padding(2);
            this.m_excludeFileFilter.Multiline = true;
            this.m_excludeFileFilter.Name = "m_excludeFileFilter";
            this.m_excludeFileFilter.ScrollBars = System.Windows.Forms.ScrollBars.Both;
            this.m_excludeFileFilter.Size = new System.Drawing.Size(162, 84);
            this.m_excludeFileFilter.TabIndex = 3;
            // 
            // m_includeFileFilter
            // 
            this.m_includeFileFilter.AcceptsReturn = true;
            this.m_includeFileFilter.Location = new System.Drawing.Point(18, 38);
            this.m_includeFileFilter.Margin = new System.Windows.Forms.Padding(2);
            this.m_includeFileFilter.Multiline = true;
            this.m_includeFileFilter.Name = "m_includeFileFilter";
            this.m_includeFileFilter.ScrollBars = System.Windows.Forms.ScrollBars.Both;
            this.m_includeFileFilter.Size = new System.Drawing.Size(162, 84);
            this.m_includeFileFilter.TabIndex = 0;
            // 
            // tabPage1
            // 
            this.m_notificationTabPage.Controls.Add(this.label6);
            this.m_notificationTabPage.Controls.Add(this.m_emailCheckedListBox);
            this.m_notificationTabPage.Location = new System.Drawing.Point(4, 31);
            this.m_notificationTabPage.Margin = new System.Windows.Forms.Padding(2);
            this.m_notificationTabPage.Name = "tabPage1";
            this.m_notificationTabPage.Padding = new System.Windows.Forms.Padding(2);
            this.m_notificationTabPage.Size = new System.Drawing.Size(606, 277);
            this.m_notificationTabPage.TabIndex = 3;
            this.m_notificationTabPage.Text = "Notification";
            this.m_notificationTabPage.UseVisualStyleBackColor = true;
            // 
            // label6
            // 
            this.label6.AutoSize = true;
            this.label6.Location = new System.Drawing.Point(11, 47);
            this.label6.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size(195, 13);
            this.label6.TabIndex = 1;
            this.label6.Text = "Send notification when backup finishes.";
            // 
            // m_emailCheckedListBox
            // 
            this.m_emailCheckedListBox.CheckBoxes = true;
            this.m_emailCheckedListBox.Location = new System.Drawing.Point(14, 73);
            this.m_emailCheckedListBox.Margin = new System.Windows.Forms.Padding(2);
            this.m_emailCheckedListBox.Name = "m_emailCheckedListBox";
            this.m_emailCheckedListBox.Size = new System.Drawing.Size(195, 109);
            this.m_emailCheckedListBox.TabIndex = 0;
            this.m_emailCheckedListBox.UseCompatibleStateImageBehavior = false;
            this.m_emailCheckedListBox.View = System.Windows.Forms.View.List;
            // 
            // splitContainer1
            // 
            this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.splitContainer1.Location = new System.Drawing.Point(0, 0);
            this.splitContainer1.Name = "splitContainer1";
            this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
            // 
            // splitContainer1.Panel1
            // 
            this.splitContainer1.Panel1.Controls.Add(this.m_advancedTabControl);
            // 
            // splitContainer1.Panel2
            // 
            this.splitContainer1.Panel2.Controls.Add(this.m_cancelButton);
            this.splitContainer1.Panel2.Controls.Add(this.m_acceptButton);
            this.splitContainer1.Panel2MinSize = 35;
            this.splitContainer1.Size = new System.Drawing.Size(614, 377);
            this.splitContainer1.SplitterDistance = 312;
            this.splitContainer1.TabIndex = 15;
            // 
            // m_cancelButton
            // 
            this.m_cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
            this.m_cancelButton.Location = new System.Drawing.Point(390, 15);
            this.m_cancelButton.Name = "m_cancelButton";
            this.m_cancelButton.Size = new System.Drawing.Size(75, 23);
            this.m_cancelButton.TabIndex = 1;
            this.m_cancelButton.Text = "Cancel";
            this.m_cancelButton.UseVisualStyleBackColor = true;
            // 
            // m_acceptButton
            // 
            this.m_acceptButton.DialogResult = System.Windows.Forms.DialogResult.OK;
            this.m_acceptButton.Location = new System.Drawing.Point(143, 15);
            this.m_acceptButton.Name = "m_acceptButton";
            this.m_acceptButton.Size = new System.Drawing.Size(75, 23);
            this.m_acceptButton.TabIndex = 0;
            this.m_acceptButton.Text = "Accept";
            this.m_acceptButton.UseVisualStyleBackColor = true;
            this.m_acceptButton.Click += new System.EventHandler(this.m_acceptButton_Click);
            // 
            // AdvancedDialogForm
            // 
            this.AcceptButton = this.m_acceptButton;
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.CancelButton = this.m_cancelButton;
            this.ClientSize = new System.Drawing.Size(614, 377);
            this.Controls.Add(this.splitContainer1);
            this.DoubleBuffered = true;
            this.Name = "AdvancedDialogForm";
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
            this.Text = "RollBack";
            this.Shown += new System.EventHandler(this.AdvancedDialogForm_Shown);
            this.m_advancedTabControl.ResumeLayout(false);
            this.m_generalTab.ResumeLayout(false);
            this.m_generalTab.PerformLayout();
            this.m_scheduleTab.ResumeLayout(false);
            this.m_scheduleTab.PerformLayout();
            this.m_includeExcludeTab.ResumeLayout(false);
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            this.m_groupBox1.ResumeLayout(false);
            this.m_groupBox1.PerformLayout();
            this.m_notificationTabPage.ResumeLayout(false);
            this.m_notificationTabPage.PerformLayout();
            this.splitContainer1.Panel1.ResumeLayout(false);
            this.splitContainer1.Panel2.ResumeLayout(false);
            this.splitContainer1.ResumeLayout(false);
            this.ResumeLayout(false);

        }

        void m_destinationFolderTextbox_Validating(object sender, System.ComponentModel.CancelEventArgs e)
        {
            bool valid = validateDestinationDirectory( );
            e.Cancel = !valid;
        }

        /// <summary>
        /// Destination directory should contain only valid path characters
        /// </summary>
        /// <returns>true if the destination directory is a valid path else return false</returns>
        private bool validateDestinationDirectory( )
        {
            bool valid = true;
            String path = new String(System.IO.Path.GetInvalidFileNameChars());
            do
            {
                path = path.Replace("/", "");
                path = path.Replace("\\", "");
                var givenPath = m_destinationFolderTextbox.Text.Trim();
                if (givenPath.Length == 0)
                {
                    AppUI.ShowMessage("Destination directory cannot be empty");
                    valid = false;
                    break;
                }
                string str = System.IO.Path.GetFullPath(givenPath);
                String root = System.IO.Path.GetPathRoot(str);

                {
                    // remove the root like C: etc
                    if (str.StartsWith(root))
                    {
                        str = str.Replace(root, "");
                    }
                }

                int ix = 0;
                if (str.Length > 0 && (ix = str.IndexOfAny(path.ToCharArray())) >= 0)
                {
                    AppUI.ShowMessage("Destination directory has invalid characters.\n\nRemoving all invalid characters.");
                    while ((ix = str.IndexOfAny(path.ToCharArray())) >= 0 && str.Length > 0)
                    {
                        str = str.Remove(ix, 1);
                    }
                    m_destinationFolderTextbox.Text = root + str.Trim();
                    valid = false;
                }
            } while (false);
            return valid;
        }

        private static bool isDirectorySeparator(char ch)
        {
            bool v = (ch == System.IO.Path.DirectorySeparatorChar || ch == '/');
            return v;
        }

        /// <summary>
        /// Called when selection of the "howOften" combo box changed.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void m_howOften_SelectedIndexChanged(object sender, EventArgs e)
        {
            try
            {
                int howOften = m_howOftenCombo.SelectedIndex;
                int whatTime = m_timeOfDayCombo.SelectedIndex;
                int whatDay = 0; // m_dayOfTheWeekCombo.SelectedIndex;
                int whatDate = 0; // m_dayOfMonthCombo.SelectedIndex;
                JobSchedule.validateSchedule(
                    ref howOften,
                    ref whatTime,
                    ref whatDay,
                    ref whatDate
                    );

                updateUIIndices(howOften, 
                    whatTime, 
                    whatDay, 
                    whatDate,
                    m_jobSchedulerEnabled.Checked,
                    m_disableBackupCheckbox.Checked);
            }
            catch (Exception ex)
            {
                string s = "Caught an exception updating scheduling UI";
                log.Warn(s, ex);
                AppUI.ShowException(s,ex);
            }
        }

        private void m_overwriteExistingNewerFiles_CheckedChanged(object sender, EventArgs e)
        {
            if (this.Visible)
            {
                if (m_overwriteExistingNewerFiles.Checked)
                {
                    DialogResult result = AppUI.ShowMessage("Are you sure you want to overwrite newer files in the backup directory?",
                        MessageBoxButtons.YesNoCancel,
                        MessageBoxIcon.Warning);
                    if (result != DialogResult.Yes)
                    {
                        m_overwriteExistingNewerFiles.Checked = false;
                    }
                }
            }
        }

        #endregion

        private System.Windows.Forms.CheckBox m_overwriteExistingNewerFiles;
        private TabControl m_advancedTabControl;
        private TabPage m_generalTab;
        private SplitContainer splitContainer1;
        private Button m_cancelButton;
        private Button m_acceptButton;
        private CheckBox m_disableBackupCheckbox;
        private TabPage m_scheduleTab;
        private Label m_howOftenLabel;
        private Label m_timeLabel;
        private Label m_dayOfTheWeekLabel;

        private ComboBox m_howOftenCombo;
        private ComboBox m_timeOfDayCombo;
        private ComboBox m_dayOfTheWeekCombo;
        private ComboBox m_dayOfMonthCombo;
        
        private Label label1;
        private CheckBox m_jobSchedulerEnabled;
        private Label label2;
        private TextBox m_jobName;
        private Label m_invalidFileNamesLabel;
        private Button m_browseFolderButton;
        private TextBox m_destinationFolderTextbox;
        private Label label3;
        private Label label4;
        public  CheckBox m_extraLoggingCheckbox;
        private TabPage m_includeExcludeTab;
        private GroupBox m_groupBox1;
        private GroupBox groupBox1;

        private TextBox m_includeFileFilter;
        private TextBox m_excludeFileFilter;
        private TextBox m_includeFolderFilter;
        private TextBox m_excludeFolderFilter;
        private CheckBox m_excludeFolderFilterCheckbox;
        private CheckBox m_includeFolderFilterCheckbox;
        private CheckBox m_excludeFileFilterCheckbox;
        private CheckBox m_includeFileFilterCheckbox;
        private CheckBox m_synchronizeBackupCheckbox;
        private TextBox m_guidTextBox;
        private Label label5;

        private BackupJob m_job;
        private BackupJobTab m_jobTab;

        /// <summary>
        /// true if this is a new job
        /// </summary>
        private bool m_newJob;
        private TabPage m_notificationTabPage;
        private Label label6;
        private ListView m_emailCheckedListBox;
    }
}